GetLastError

 

If an error occurs during script execution, it returns the error content as a string.

 

string @GetLastError();

 

Function Arguments

None

 

Return Value

The error content is returned as a string.

 

Example

connection_id = @DbDsOpen("TestDsn","SELECT * FROM Table1");

if(connection_id == -1) {

   msg = @GetLastError();

   @Message(msg);

   return;

 

Description: If an error occurs during DbDsOpen, it is returned to msg and displayed as a one-line message.

 

Version Information

Supported Version: 10.2.1 or Higher

 

Related Helps

@DbDsOpen()